﻿using System;

namespace CrmRulo
{
    public class Util
    {
        /// <summary>
        /// Throw exception if assertion is not met
        /// </summary>
        /// <param name="assertion">The assertion</param>
        /// <param name="exceptionText">The text to be included in the exception</param>
        public static void Assert(bool assertion, string exceptionText)
        {
            if (!assertion)
                throw new Exception(exceptionText);
        }
    }
}
